define([ 'angular-toaster', 'angularAMD' ], function(toaster, angularAMD) {
	var template="<div toaster-container toaster-options=\"{'time-out': 2000, 'close-button':true, 'animation-class': 'toast-center'}\"></div>"
	angularAMD.inject(function($document,$compile,$rootScope){
		var t=$compile(template)($rootScope);
		$document.find('body').append(t)
	})
	return toaster;
})